#include "tg_page.h"
#include "tg_pagesettings.h"

#include <QPainter>

TgPage::TgPage(TgPageSettings* settings) :
    BaseClass(),
    m_settings(settings)
{
}

QRectF TgPage::boundingRect() const
{
    return m_settings->pageRect();
}

void TgPage::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
    painter->setBrush(Qt::white);
    painter->drawRect(boundingRect());
}
